﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace LuckDraw.Models
{
    public class Human
    {
        private static Human instance = null;

        private static List<string> nameList = new List<string>();

        public static List<string> GetNameList()
        {
            return nameList;
        }

        //单例
        public static Human GetInstance()
        {
            if (instance == null)
            {
                instance = new Human();
            }
            return instance;
        }

        public static void Init()
        {
            nameList.Clear();
            nameList.Add("崔雪妍");
            nameList.Add("刘大千");
            nameList.Add("宫浩阳");
            nameList.Add("许凯");
            nameList.Add("夏辉龙");
            nameList.Add("张辉");
            nameList.Add("牛旭芳");
            nameList.Add("周通");
            nameList.Add("张爱红");
            nameList.Add("赵小龙");
            nameList.Add("王雪刚");
        }
        //构造器赋值
        public Human()
        {
            Init();
        }
    }
}